package com.itcam.chat.service;

import com.itcam.chat.domain.vo.MessageVo;
import com.itcam.chat.domain.vo.QueryVo;
import reactor.core.publisher.Flux;

public interface OllamaService {

    /**
     * 文本问答
     * @param queryVo
     * @return
     */
    Flux<String> chatStream(QueryVo queryVo);

    /**
     * 保存AI回答的结果
     * @param messageVo
     */
    void saveMsg(MessageVo messageVo);
}